package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.NoticeSumMapper;
import com.ruoyi.system.domain.NoticeSum;
import com.ruoyi.system.service.INoticeSumService;

/**
 * 通告汇总Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-12-26
 */
@Service
public class NoticeSumServiceImpl implements INoticeSumService 
{
    @Autowired
    private NoticeSumMapper noticeSumMapper;

    /**
     * 查询通告汇总
     * 
     * @param id 通告汇总主键
     * @return 通告汇总
     */
    @Override
    public NoticeSum selectNoticeSumById(Long id)
    {
        return noticeSumMapper.selectNoticeSumById(id);
    }

    /**
     * 查询通告汇总列表
     * 
     * @param noticeSum 通告汇总
     * @return 通告汇总
     */
    @Override
    public List<NoticeSum> selectNoticeSumList(NoticeSum noticeSum)
    {
        return noticeSumMapper.selectNoticeSumList(noticeSum);
    }

    /**
     * 新增通告汇总
     * 
     * @param noticeSum 通告汇总
     * @return 结果
     */
    @Override
    public int insertNoticeSum(NoticeSum noticeSum)
    {
        return noticeSumMapper.insertNoticeSum(noticeSum);
    }

    /**
     * 修改通告汇总
     * 
     * @param noticeSum 通告汇总
     * @return 结果
     */
    @Override
    public int updateNoticeSum(NoticeSum noticeSum)
    {
        return noticeSumMapper.updateNoticeSum(noticeSum);
    }

    /**
     * 批量删除通告汇总
     * 
     * @param ids 需要删除的通告汇总主键
     * @return 结果
     */
    @Override
    public int deleteNoticeSumByIds(Long[] ids)
    {
        return noticeSumMapper.deleteNoticeSumByIds(ids);
    }

    /**
     * 删除通告汇总信息
     * 
     * @param id 通告汇总主键
     * @return 结果
     */
    @Override
    public int deleteNoticeSumById(Long id)
    {
        return noticeSumMapper.deleteNoticeSumById(id);
    }
}
